package cn.ztelovecly.springboot.framework.util.excel.datatable;

import cn.ztelovecly.springboot.framework.util.excel.enumeration.Status;

import java.io.Serializable;

/**
 * 单元格.
 *
 */
public class Cell implements Serializable {
	/**
	 * 单元格的状态
	 */
	private Status status;

	/**
	 * 单元格的值
	 */
	private String value;

	/**
	 * 错误提示信息
	 */
	private String message;

	/**
	 * 默认无参构造方法.会将单元格的状态设为通过.
	 */
	public Cell() {
		this.status = Status.PASS;
		this.value = "";
	}

	/**
	 * 传入默认单元格值的构造方法.
	 * @param value    单元格的值.
	 */
	public Cell(String value) {
		this.value = value;
		this.status = Status.PASS;
	}

	public Status getStatus() {
		return status;
	}

	public void setStatus(Status status) {
		this.status = status;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}
}
